using System;
using System.Collections.Generic;
using System.Text;
using emp.DALFactory;
using emp.IDAL;
using emp.Model;
using System.Collections;
using System.Data;


namespace emp.BLL
{
    public class Campaign_Channel
    {
        public int Insert(Campaign_ChannelInfo cacInfo)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            return dal.Insert(cacInfo);
        }
        public void Update(Campaign_ChannelInfo cacInfo)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            dal.Update(cacInfo);
        }
        public DataTable getCACListByCAM_UID(int cam_uid)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            return dal.getCACListByCAM_UID(cam_uid);
        }
        public CACModelInfo getCACByUID(int cac_uid)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            return dal.getCACByUID(cac_uid);
        }
        public bool Delete(string CAC_UID)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            return dal.Delete(CAC_UID);
        }
        public bool UpdateState(int cac_uid, string cac_state)
        {
            ICampaign_Channel dal = emp.DALFactory.Campaign_Channel.Create();
            return dal.UpdateState(cac_uid, cac_state);
        }
        
    }
}
